import ScriptVariables

######### bus deletion ############
print AdminTask.deleteSIBus(['-bus', ScriptVariables.SIBbusName ])
print " SIBus " + ScriptVariables.SIBbusName + " deleted"
print "------------------------------------------------"

######### QCF deletion ############
AdminTask.deleteSIBJMSConnectionFactory(AdminConfig.getid('/ServerCluster:' + ScriptVariables.serverClusterName + '/J2CConnectionFactory:'+ ScriptVariables.QueueConnFactoryName +''))              
print " SIBJMSConnectionFactory " + ScriptVariables.QueueConnFactoryName + " deleted"
print "------------------------------------------------"

######### OutputQueue deletion ############
print AdminTask.deleteSIBJMSQueue(AdminConfig.getid('/ServerCluster:' + ScriptVariables.serverClusterName + '/J2CAdminObject:'+ ScriptVariables.outputQueueConfigName +'/'))
print " SIBJMSQueue " + ScriptVariables.outputQueueConfigName + " deleted"
print "------------------------------------------------"

######### Activation specification deletion ############
print AdminTask.deleteSIBJMSActivationSpec(AdminConfig.getid('/ServerCluster:' + ScriptVariables.serverClusterName + '/J2CActivationSpec:'+ ScriptVariables.activationSpecificationName +'/'))
print " SIBJMSActivationSpec " + ScriptVariables.activationSpecificationName + " deleted"
print "------------------------------------------------"

######### Saving configuration ############
print "     Saving configuration."
AdminConfig.save()
print "     Done."